# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Marcos Heredia <chelqo@gmail.com>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: orelien <aurelien.foret@wanadoo.fr>
# Contributor: Muflone <webreg@vbsimple.net>

pkgname=httrack
pkgver=3.49.2
pkgrel=4
pkgdesc="An easy-to-use offline browser utility"
arch=('loong64' 'x86_64')
url="https://www.httrack.com/"
license=('GPL3')
depends=('bash' 'xdg-utils' 'hicolor-icon-theme' 'openssl')
source=(https://mirror.httrack.com/historical/$pkgname-$pkgver.tar.gz{,.asc})
validpgpkeys=('BB71C7E6CB1AD8FAF53FE42A60C3AA7180598EFB') # Xavier Roche
sha256sums=('3477a0e5568e241c63c9899accbfcdb6aadef2812fcce0173688567b4c7d4025'
            'SKIP')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr --enable-static=no
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
